﻿@using Nop.Core
@using Nop.Core.Infrastructure
@using Nop.Services.Localization
@using Nop.Web.Framework.Themes
@{
    //logo path
    var currentThemeName = EngineContext.Current.Resolve<IThemeContext>().WorkingThemeName;
    var logoPath = "~/Themes/" + currentThemeName + "/Content/logo.png";

    //store name
    var storeName = EngineContext.Current.Resolve<IStoreContext>().CurrentStore.GetLocalized(x => x.Name);
}

@*top links*@
<div class="navbar-top-links">
    @Html.Action("HeaderLinks", "Common")
</div>
<div class="container">
    <div class="logo col-xs-3">
        <a title="@storeName" href="@Url.RouteUrl("HomePage")" >
            <img title="@storeName" alt="@storeName" src="@Url.Content(logoPath)">
        </a>
    </div>
    <div class="col-xs-9">
        @Html.Action("SearchBox", "Catalog")
    </div>
</div>
@Html.Widget("header")
